<?php


namespace App\Http\Validator;


use App\Http\Common\BaserValidate;

class StudyScheduleValidator extends BaserValidate
{
    protected $rule = [
        'date'      =>  'required|digits:10',
        'content'   =>  'required',
    ];

    protected $message = [
        'date.required'     =>  '日期不能为空',
        'date.digits'       =>  '日期必须为数字',
        'content.required'  =>  '内容不能为空',
    ];

    protected $scene = [
        'add'   =>  ['date', 'content']
    ];
}
